3.153 \(\int (c+d x)^m (a+a \cosh (e+f x)) \, dx\)

Optimal. Leaf size=131 \[ \frac {a e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {f (c+d x)}{d}\right )}{2 f}-\frac {a e^{\frac {c f}{d}-e} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {f (c+d x)}{d}\right )}{2 f}+\frac {a (c+d x)^{m+1}}{d (m+1)} \]

[Out]

a*(d*x+c)^(1+m)/d/(1+m)+1/2*a*exp(e-c*f/d)*(d*x+c)^m*GAMMA(1+m,-f*(d*x+c)/d)/f/((-f*(d*x+c)/d)^m)-1/2*a*exp(-e
+c*f/d)*(d*x+c)^m*GAMMA(1+m,f*(d*x+c)/d)/f/((f*(d*x+c)/d)^m)

________________________________________________________________________________________

Rubi [A]  time = 0.15, antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3317, 3307, 2181} \[ \frac {a e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \text {Gamma}\left (m+1,-\frac {f (c+d x)}{d}\right )}{2 f}-\frac {a e^{\frac {c f}{d}-e} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \text {Gamma}\left (m+1,\frac {f (c+d x)}{d}\right )}{2 f}+\frac {a (c+d x)^{m+1}}{d (m+1)} \]

Antiderivative was successfully verified.

[In]

Int[(c + d*x)^m*(a + a*Cosh[e + f*x]),x]

[Out]

(a*(c + d*x)^(1 + m))/(d*(1 + m)) + (a*E^(e - (c*f)/d)*(c + d*x)^m*Gamma[1 + m, -((f*(c + d*x))/d)])/(2*f*(-((
f*(c + d*x))/d))^m) - (a*E^(-e + (c*f)/d)*(c + d*x)^m*Gamma[1 + m, (f*(c + d*x))/d])/(2*f*((f*(c + d*x))/d)^m)

Rule 2181

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> -Simp[(F^(g*(e - (c*f)/d))*(c +
d*x)^FracPart[m]*Gamma[m + 1, (-((f*g*Log[F])/d))*(c + d*x)])/(d*(-((f*g*Log[F])/d))^(IntPart[m] + 1)*(-((f*g*
Log[F]*(c + d*x))/d))^FracPart[m]), x] /; FreeQ[{F, c, d, e, f, g, m}, x] &&  !IntegerQ[m]

Rule 3307

Int[((c_.) + (d_.)*(x_))^(m_.)*sin[(e_.) + Pi*(k_.) + (f_.)*(x_)], x_Symbol] :> Dist[I/2, Int[(c + d*x)^m/(E^(
I*k*Pi)*E^(I*(e + f*x))), x], x] - Dist[I/2, Int[(c + d*x)^m*E^(I*k*Pi)*E^(I*(e + f*x)), x], x] /; FreeQ[{c, d
, e, f, m}, x] && IntegerQ[2*k]

Rule 3317

Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Int[ExpandIntegrand[
(c + d*x)^m, (a + b*Sin[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && IGtQ[n, 0] && (EqQ[n, 1] ||
IGtQ[m, 0] || NeQ[a^2 - b^2, 0])

Rubi steps

\begin {align*} \int (c+d x)^m (a+a \cosh (e+f x)) \, dx &=\int \left (a (c+d x)^m+a (c+d x)^m \cosh (e+f x)\right ) \, dx\\ &=\frac {a (c+d x)^{1+m}}{d (1+m)}+a \int (c+d x)^m \cosh (e+f x) \, dx\\ &=\frac {a (c+d x)^{1+m}}{d (1+m)}+\frac {1}{2} a \int e^{-i (i e+i f x)} (c+d x)^m \, dx+\frac {1}{2} a \int e^{i (i e+i f x)} (c+d x)^m \, dx\\ &=\frac {a (c+d x)^{1+m}}{d (1+m)}+\frac {a e^{e-\frac {c f}{d}} (c+d x)^m \left (-\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {f (c+d x)}{d}\right )}{2 f}-\frac {a e^{-e+\frac {c f}{d}} (c+d x)^m \left (\frac {f (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {f (c+d x)}{d}\right )}{2 f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.33, size = 189, normalized size = 1.44 \[ -\frac {a e^{-\frac {c f}{d}-e} (c+d x)^m (\cosh (e+f x)+1) \text {sech}^2\left (\frac {1}{2} (e+f x)\right ) \left (-\frac {f^2 (c+d x)^2}{d^2}\right )^{-m} \left (-2 f (c+d x) e^{\frac {c f}{d}+e} \left (-\frac {f^2 (c+d x)^2}{d^2}\right )^m-d e^{2 e} (m+1) \left (f \left (\frac {c}{d}+x\right )\right )^m \Gamma \left (m+1,-\frac {f (c+d x)}{d}\right )+d (m+1) e^{\frac {2 c f}{d}} \left (-\frac {f (c+d x)}{d}\right )^m \Gamma \left (m+1,\frac {f (c+d x)}{d}\right )\right )}{4 d f (m+1)} \]

Antiderivative was successfully verified.

[In]

Integrate[(c + d*x)^m*(a + a*Cosh[e + f*x]),x]

[Out]

-1/4*(a*E^(-e - (c*f)/d)*(c + d*x)^m*(1 + Cosh[e + f*x])*(-2*E^(e + (c*f)/d)*f*(c + d*x)*(-((f^2*(c + d*x)^2)/
d^2))^m - d*E^(2*e)*(1 + m)*(f*(c/d + x))^m*Gamma[1 + m, -((f*(c + d*x))/d)] + d*E^((2*c*f)/d)*(1 + m)*(-((f*(
c + d*x))/d))^m*Gamma[1 + m, (f*(c + d*x))/d])*Sech[(e + f*x)/2]^2)/(d*f*(1 + m)*(-((f^2*(c + d*x)^2)/d^2))^m)

________________________________________________________________________________________

fricas [A]  time = 0.59, size = 249, normalized size = 1.90 \[ -\frac {{\left (a d m + a d\right )} \cosh \left (\frac {d m \log \left (\frac {f}{d}\right ) + d e - c f}{d}\right ) \Gamma \left (m + 1, \frac {d f x + c f}{d}\right ) - {\left (a d m + a d\right )} \cosh \left (\frac {d m \log \left (-\frac {f}{d}\right ) - d e + c f}{d}\right ) \Gamma \left (m + 1, -\frac {d f x + c f}{d}\right ) - {\left (a d m + a d\right )} \Gamma \left (m + 1, \frac {d f x + c f}{d}\right ) \sinh \left (\frac {d m \log \left (\frac {f}{d}\right ) + d e - c f}{d}\right ) + {\left (a d m + a d\right )} \Gamma \left (m + 1, -\frac {d f x + c f}{d}\right ) \sinh \left (\frac {d m \log \left (-\frac {f}{d}\right ) - d e + c f}{d}\right ) - 2 \, {\left (a d f x + a c f\right )} \cosh \left (m \log \left (d x + c\right )\right ) - 2 \, {\left (a d f x + a c f\right )} \sinh \left (m \log \left (d x + c\right )\right )}{2 \, {\left (d f m + d f\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^m*(a+a*cosh(f*x+e)),x, algorithm="fricas")

[Out]

-1/2*((a*d*m + a*d)*cosh((d*m*log(f/d) + d*e - c*f)/d)*gamma(m + 1, (d*f*x + c*f)/d) - (a*d*m + a*d)*cosh((d*m
*log(-f/d) - d*e + c*f)/d)*gamma(m + 1, -(d*f*x + c*f)/d) - (a*d*m + a*d)*gamma(m + 1, (d*f*x + c*f)/d)*sinh((
d*m*log(f/d) + d*e - c*f)/d) + (a*d*m + a*d)*gamma(m + 1, -(d*f*x + c*f)/d)*sinh((d*m*log(-f/d) - d*e + c*f)/d
) - 2*(a*d*f*x + a*c*f)*cosh(m*log(d*x + c)) - 2*(a*d*f*x + a*c*f)*sinh(m*log(d*x + c)))/(d*f*m + d*f)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \cosh \left (f x + e\right ) + a\right )} {\left (d x + c\right )}^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^m*(a+a*cosh(f*x+e)),x, algorithm="giac")

[Out]

integrate((a*cosh(f*x + e) + a)*(d*x + c)^m, x)

________________________________________________________________________________________

maple [F]  time = 0.15, size = 0, normalized size = 0.00 \[ \int \left (d x +c \right )^{m} \left (a +a \cosh \left (f x +e \right )\right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*x+c)^m*(a+a*cosh(f*x+e)),x)

[Out]

int((d*x+c)^m*(a+a*cosh(f*x+e)),x)

________________________________________________________________________________________

maxima [A]  time = 0.41, size = 100, normalized size = 0.76 \[ -\frac {1}{2} \, {\left (\frac {{\left (d x + c\right )}^{m + 1} e^{\left (-e + \frac {c f}{d}\right )} E_{-m}\left (\frac {{\left (d x + c\right )} f}{d}\right )}{d} + \frac {{\left (d x + c\right )}^{m + 1} e^{\left (e - \frac {c f}{d}\right )} E_{-m}\left (-\frac {{\left (d x + c\right )} f}{d}\right )}{d}\right )} a + \frac {{\left (d x + c\right )}^{m + 1} a}{d {\left (m + 1\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^m*(a+a*cosh(f*x+e)),x, algorithm="maxima")

[Out]

-1/2*((d*x + c)^(m + 1)*e^(-e + c*f/d)*exp_integral_e(-m, (d*x + c)*f/d)/d + (d*x + c)^(m + 1)*e^(e - c*f/d)*e
xp_integral_e(-m, -(d*x + c)*f/d)/d)*a + (d*x + c)^(m + 1)*a/(d*(m + 1))

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \left (a+a\,\mathrm {cosh}\left (e+f\,x\right )\right )\,{\left (c+d\,x\right )}^m \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*cosh(e + f*x))*(c + d*x)^m,x)

[Out]

int((a + a*cosh(e + f*x))*(c + d*x)^m, x)

________________________________________________________________________________________

sympy [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)**m*(a+a*cosh(f*x+e)),x)

[Out]

Exception raised: TypeError

________________________________________________________________________________________